import request from '@/utils/request'

// 查询订单关联发票信息列表
export function listRyOrderBill(query) {
  return request({
    url: '/purchase/ryOrderBill/list',
    method: 'get',
    params: query
  })
}

// 查询订单关联发票信息详细
export function getRyOrderBill(id) {
  return request({
    url: '/purchase/ryOrderBill/' + id,
    method: 'get'
  })
}

// 新增订单关联发票信息
export function addRyOrderBill(data) {
  return request({
    url: '/purchase/ryOrderBill',
    method: 'post',
    data: data
  })
}

// 修改订单关联发票信息
export function updateRyOrderBill(data) {
  return request({
    url: '/purchase/ryOrderBill',
    method: 'put',
    data: data
  })
}

// 删除订单关联发票信息
export function delRyOrderBill(id) {
  return request({
    url: '/purchase/ryOrderBill/' + id,
    method: 'delete'
  })
}
